package com.the4man.framework.model;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * Created by lenovo on 2017/12/12.
 */
public class PostMessage {
    private String postContent;
    private Timestamp postTime;
    private String formatPostTime;

    public PostMessage() {
    }

    public String getPostContent() {
        return this.postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public Timestamp getPostTime() {
        return this.postTime;
    }

    public void setPostTime(Timestamp postTime) {
        this.postTime = postTime;
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.formatPostTime = df.format(postTime);
    }

    public String getFormatPostTime() {
        return this.formatPostTime;
    }

    public void setFormatPostTime(String formatPostTime) {
        this.formatPostTime = formatPostTime;
    }
}
